import useQuery from '@/api/query'

// 登录接口
const login = (username,password) => {
  return useQuery.post('https://big-event-vue-api-t.itheima.net/api/login', {
  username,
  password,
})}

// 注册接口
const signUp = (username,password,repassword) => {
  return useQuery.post('https://big-event-vue-api-t.itheima.net/api/reg',{
  username,
  password,
  repassword
  })
}

export { login, signUp }